/********************General information******************************************
*Author: David Roberto Bellomo Gomez
*Date: 05/23/13
*File: Platform_Serial_InterFace.h
**********************File description********************************************
*Version: 1.0
*Description: This header is created to provide the interface between  serial 
*microcontroller driver functions and the Serial manager, this interface may be 
*changen if the hardware change or libaries change.
*********************Change historial**********************************************
*Author:
*Date:
*Description of the change 
***********************************************************************************/

#ifndef PLATFORM_SERIAL_INTERFACE_H
#define PLATFORM_SERIAL_INTERFACE_H

/*Needed if arduino is been used*/
#include <Arduino.h>


/*Add the interface needed*/

#define Start_SerialCom(baudRate)           Serial.begin((long) baudRate) //Interface for set baudrate
#define GetAvailableBytes_SerialCom()       Serial.available() //Get the available bytes in buss
#define SendBuffer_SerialCom(Buffer , len)  Serial.write((unsigned char *) Buffer, len )
#define ReadBytes_SerialCom(Buffer , len)   Serial.readBytes((unsigned char*) Buffer , lend)
#define SetTimeOut_SerialCom(timeOut_Value) Serial.setTimeout(timeOut_Value)

#endif
